package org.wgc.study.config;

import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.JobParametersBuilder;
import org.springframework.batch.core.JobParametersIncrementer;

/***
 *@title DailyJobIncrementer
 *@description <TODO description class purpose>
 *@author wgc_j
 *@version 1.0.0
 *@create 2025-08-08 10:13
 **/
// 自定义JobParametersIncrementer
public class DailyJobIncrementer implements JobParametersIncrementer {
    @Override
    public JobParameters getNext(JobParameters parameters) {
        return new JobParametersBuilder(parameters)
                .addLong("run.id", System.currentTimeMillis())
                .toJobParameters();
    }
}
